

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main" />
  <title>Volunteer List</title>
</head>
<body>
<div class="nav">
  <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
  <span class="menuButton"><g:link controller="userAccount" class="logout" action="logout">Logout</g:link></span>
</div>
<div class="body">
  <h1>Volunteer List</h1>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
  <div class="list">
    <table>
      <thead>
      <tr>

        <g:sortableColumn property="id" title="Id" />

        <g:sortableColumn property="dateCreated" title="Date Created" />

        <th>Position</th>


        <th>Event</th>

        <th>User</th>


      </tr>
      </thead>
      <tbody>
      <g:each in="${positionRegistrationInstanceList}" status="i" var="positionRegistrationInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

        <td><g:link action="show" id="${positionRegistrationInstance.id}">${fieldValue(bean:positionRegistrationInstance, field:'id')}</g:link></td>

        <td>${fieldValue(bean:positionRegistrationInstance, field:'dateCreated')}</td>

        <td>${fieldValue(bean:positionRegistrationInstance, field:'position')}</td>

        <td>${fieldValue(bean:positionRegistrationInstance, field:'position.event')}</td>

        <td>${fieldValue(bean:positionRegistrationInstance, field:'user')}</td>

      %{--<td>${fieldValue(bean:positionRegistrationInstance, field:'')}</td>--}%

         </g:each>

      </tbody>
    </table>

  </div>

  
  <div class="paginateButtons">
    <g:paginate total="${positionRegistrationInstanceTotal}" />
  </div>
</div>
</body>
</html>
